﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Lines.aspx.cs" MasterPageFile="~/Site.Master" Inherits="Timesheet.WebForm.TimeSheets.Lines" %>

<%@ Register Assembly="DevExpress.Web.v14.2, Version=14.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>



<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <div>
        <dx:ASPxLabel ID="lblTmshDetailMessage" runat="server" Visible="false" Text="" Font-Size="12px" ForeColor="Red">
        </dx:ASPxLabel>
    </div>
    <div class="detail1">
        <asp:Table runat="server">
            <asp:TableRow>
                <asp:TableCell>
                    <asp:Table runat="server" CellSpacing="2" CellPadding="0">
                        <asp:TableRow>
                            <asp:TableCell>
                                <label class="titlelbb">Project name</label>
                                <asp:Label runat="server" ID="lblPrjName" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell Width="80px"></asp:TableCell>
                            <asp:TableCell>
                                <label class="titlelbb">Coodinators</label>
                                <asp:Label runat="server" ID="lblCoordID" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <label class="titlelbb">Customer</label><asp:Label runat="server" ID="lblCustomer" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell Width="80px"></asp:TableCell>
                            <asp:TableCell>
                                <label class="titlelbb">Team Leads</label><asp:Label runat="server" ID="lblTeamLeads" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <label class="titlelbb">Job#</label><asp:Label runat="server" ID="lblJob" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell Width="80px"></asp:TableCell>
                            <asp:TableCell>
                                <label class="titlelbb">Team Name</label><asp:Label runat="server" ID="lblTeamName" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <label class="titlelbb">Job Description</label><asp:Label runat="server" ID="lblJobDescription" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell Width="80px"></asp:TableCell>
                            <asp:TableCell>
                                <label class="titlelbb">Job Location</label><asp:Label runat="server" ID="lblLocation" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <label class="titlelbb">Contract/P.O. #</label><asp:Label runat="server" ID="lblContact" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell Width="80px"></asp:TableCell>
                            <asp:TableCell>
                                <label class="titlelbb">Discipline</label><asp:Label runat="server" ID="lblDiscipline" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <label class="titlelbb">Network Code</label><asp:Label runat="server" ID="lblNetwork" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell Width="80px"></asp:TableCell>
                            <asp:TableCell>
                                <label class="titlelbb">Week</label><asp:Label runat="server" ID="lblWeek" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <label class="titlelbb">WBS #</label><asp:Label runat="server" ID="lblWbs" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell Width="80px"></asp:TableCell>
                            <asp:TableCell>
                                <label class="titlelbb">Status</label><asp:Label runat="server" ID="lblStatus" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <label class="titlelbb">Resp. Person</label><asp:Label runat="server" ID="lblResp" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell Width="80px"></asp:TableCell>
                            <asp:TableCell>
                                <label class="titlelbb">Approved by</label><asp:Label runat="server" ID="lblApproved" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                        </asp:TableRow>
                        <asp:TableRow>
                            <asp:TableCell>
                                <label class="titlelbb">Ticket#</label><asp:Label runat="server" ID="lblTicker" CssClass="valuelbb"></asp:Label>
                            </asp:TableCell>
                            <asp:TableCell Width="80px"></asp:TableCell>
                            <asp:TableCell>
                               
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                </asp:TableCell>
                <asp:TableCell Width="80px"></asp:TableCell>
                <asp:TableCell>
                    <asp:Table runat="server">
                        <asp:TableHeaderRow>
                            <asp:TableCell>
                                <dx:ASPxButton runat="server" ID="btnApprove" Font-Bold="True" Font-Overline="False" Text="Approve" OnClick="btnApprove_Click" CssClass="tmshDetail_btn"></dx:ASPxButton>
                            </asp:TableCell>
                        </asp:TableHeaderRow>
                        <asp:TableHeaderRow>
                            <asp:TableCell>
                                <dx:ASPxButton runat="server" ID="btnNewTmsh" Font-Bold="True" Font-Overline="False" Text="Create new TimeSheet" OnClick="btnCreatetmsh_Click" CssClass="tmshDetail_btn"></dx:ASPxButton>
                            </asp:TableCell>
                        </asp:TableHeaderRow>
                        <asp:TableHeaderRow>
                            <asp:TableCell>
                                <dx:ASPxButton runat="server" ID="btnReport" Font-Bold="True" Font-Overline="False" Text="Create Report" OnClick="btnCreateReport_Click" CssClass="tmshDetail_btn"></dx:ASPxButton>
                            </asp:TableCell>
                        </asp:TableHeaderRow>
                    </asp:Table>
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>

        <div style="background-color: white; height: 38px; padding-top: 10px">
            <dx:ASPxLabel ID="lblTmshDetail" runat="server" CssClass="maintitle" Text="TimeSheet" Font-Size="22px" Font-Bold="true" ForeColor="#4A72A3">
            </dx:ASPxLabel>
        </div>
        <%--<div style="width: 1060px;overflow: auto;border-left: 1px solid #999;border-right: 1px solid #999;">--%>
        <dx:ASPxGridView ID="grvTmshDetails" runat="server"
            EnableTheming="True"
            Theme="Office2010Silver"
            AutoGenerateColumns="False"
            DataSourceID="dsTmshDetails"
            KeyFieldName="Id"
            OnRowUpdating="grvTmshDetails_RowUpdating"
            OnCustomUnboundColumnData="grvTmshDetails_CustomUnboundColumnData"
            OnRowInserting="grvTmshDetails_RowInserting" Width="1350px" OnCustomColumnDisplayText="grvTmshDetails_CustomColumnDisplayText" OnCustomSummaryCalculate="grvTmshDetails_CustomSummaryCalculate">
            <TotalSummary>
                <dx:ASPxSummaryItem FieldName="Mileage" ShowInGroupFooterColumn="Mileage" SummaryType="Custom" Tag="Item_A" />
            </TotalSummary>
            <Columns>
                <dx:GridViewDataTextColumn FieldName="Id" ReadOnly="true" Width="50px" Caption="ID" Name="Id" VisibleIndex="0" Visible="false">
                </dx:GridViewDataTextColumn>
                <%--<dx:GridViewDataColumn FieldName="TransID" VisibleIndex="1" Width="0px" Name="TransID">
                </dx:GridViewDataColumn>--%>
                <dx:GridViewDataTextColumn Caption="No" ReadOnly="True" UnboundType="String" Width="30px"
                    VisibleIndex="0">
                    <Settings AllowAutoFilter="False" AllowAutoFilterTextInputTimer="False"
                        AllowDragDrop="False" AllowGroup="False" AllowHeaderFilter="False"
                        AllowSort="False" />
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataComboBoxColumn FieldName="EmployerID" Name="EmployerID" Caption="Employee" VisibleIndex="2">
                    <PropertiesComboBox DataSourceID="dsEmployers" TextField="FullName" ValueField="Id">
                        <Columns>
                            <dx:ListBoxColumn Caption="Id" FieldName="Id" Name="Id" Visible="false" />
                            <dx:ListBoxColumn Caption="Employee" FieldName="FullName" Name="FullName" />
                        </Columns>
                    </PropertiesComboBox>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataComboBoxColumn FieldName="Group" Name="Group" Caption="Group" VisibleIndex="3" Width="50px">
                    <PropertiesComboBox DataSourceID="dsGroups" TextField="Name" ValueField="Id">
                        <Columns>
                            <dx:ListBoxColumn Caption="Id" FieldName="Id" Name="Id" Visible="false" />
                            <dx:ListBoxColumn Caption="Group" FieldName="Name" Name="Username" />
                        </Columns>
                    </PropertiesComboBox>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataComboBoxColumn FieldName="ClassCode" Name="ClassCode" Caption="ClassCode" VisibleIndex="4" Width="80px">
                    <PropertiesComboBox DataSourceID="dsClassCodes" TextField="Name" ValueField="Id">
                        <Columns>
                            <dx:ListBoxColumn Caption="Id" FieldName="Id" Name="Id" Visible="false" />
                            <dx:ListBoxColumn Caption="Class Code" FieldName="Name" Name="Username" />
                        </Columns>
                    </PropertiesComboBox>
                </dx:GridViewDataComboBoxColumn>
                <dx:GridViewDataTextColumn FieldName="Mileage" Name="Mileage" Caption="Mileage" Width="60px" VisibleIndex="6">
                </dx:GridViewDataTextColumn>

                <dx:GridViewBandColumn Name="colPerDiem" Caption="Per Diem" VisibleIndex="7" HeaderStyle-ForeColor="#6699ff">
                    <Columns>
                        <dx:GridViewDataSpinEditColumn FieldName="PerDiemFull" Name="PerDiemFull" Caption="Full" Width="60px" >
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                        </dx:GridViewDataSpinEditColumn>
                        <dx:GridViewDataSpinEditColumn FieldName="PerDiemMeals" Name="PerDiemMeals" Caption="Meals" Width="60px" >
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                        </dx:GridViewDataSpinEditColumn>
                    </Columns>
                </dx:GridViewBandColumn>
                <dx:GridViewBandColumn Name="colSun" Visible="false" VisibleIndex="9" HeaderStyle-ForeColor="#6699ff" Caption="SUN">
                    <Columns>
                        <dx:GridViewDataSpinEditColumn FieldName="SunSTHours" VisibleIndex="1" Width="42px" Caption="ST" Name="SunSTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                        </dx:GridViewDataSpinEditColumn>
                        <dx:GridViewDataSpinEditColumn FieldName="SunOTHours" VisibleIndex="2" Width="42px" Caption="OT" Name="SunOTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                            <CellStyle CssClass="OTHoursValue">
                            </CellStyle>
                        </dx:GridViewDataSpinEditColumn>
                    </Columns>

                    <HeaderStyle ForeColor="#6699FF"></HeaderStyle>
                </dx:GridViewBandColumn>
                <dx:GridViewBandColumn Name="colMon" Visible="false" HeaderStyle-ForeColor="#6699ff" VisibleIndex="10" Caption="MON">
                    <Columns>
                        <dx:GridViewDataSpinEditColumn FieldName="MonSTHours" VisibleIndex="8" Caption="ST" Width="42px" Name="MonSTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                        </dx:GridViewDataSpinEditColumn>
                        <dx:GridViewDataSpinEditColumn FieldName="MonOTHours" VisibleIndex="9" Caption="OT" Width="42px" Name="MonOTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                            <CellStyle CssClass="OTHoursValue" ForeColor="Red">
                            </CellStyle>
                        </dx:GridViewDataSpinEditColumn>
                    </Columns>
                    <HeaderStyle ForeColor="#6699FF" />
                </dx:GridViewBandColumn>
                <dx:GridViewBandColumn Name="colTue" Visible="false" Caption="TUE" HeaderStyle-ForeColor="#6699ff" VisibleIndex="11">
                    <Columns>
                        <dx:GridViewDataSpinEditColumn FieldName="TueOTHours" VisibleIndex="2" Caption="OT" Width="42px" Name="TueOTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                            <CellStyle CssClass="OTHoursValue" ForeColor="Red">
                            </CellStyle>
                        </dx:GridViewDataSpinEditColumn>
                        <dx:GridViewDataSpinEditColumn FieldName="TueSTHours" VisibleIndex="1" Caption="ST" Width="42px" Name="TueSTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                        </dx:GridViewDataSpinEditColumn>
                    </Columns>
                    <HeaderStyle ForeColor="#6699FF" />
                </dx:GridViewBandColumn>
                <dx:GridViewBandColumn Name="colWeb" Visible="false" Caption="WEB" VisibleIndex="12" HeaderStyle-ForeColor="#6699ff">
                    <Columns>
                        <dx:GridViewDataSpinEditColumn FieldName="WebOTHours" VisibleIndex="2" Caption="OT" Width="42px" Name="WebOTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                            <CellStyle CssClass="OTHoursValue" ForeColor="Red">
                            </CellStyle>
                        </dx:GridViewDataSpinEditColumn>
                        <dx:GridViewDataSpinEditColumn FieldName="WebSTHours" VisibleIndex="1" Caption="ST" Width="42px" Name="WebSTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                        </dx:GridViewDataSpinEditColumn>
                    </Columns>

                    <HeaderStyle ForeColor="#6699FF"></HeaderStyle>

                </dx:GridViewBandColumn>
                <dx:GridViewBandColumn Name="colThu" Visible="false" Caption="THU" VisibleIndex="13" HeaderStyle-ForeColor="#6699ff">
                    <Columns>
                        <dx:GridViewDataSpinEditColumn FieldName="ThuOTHours" VisibleIndex="2" Caption="OT" Width="42px" Name="ThuOTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                            <CellStyle CssClass="OTHoursValue" ForeColor="Red">
                            </CellStyle>
                        </dx:GridViewDataSpinEditColumn>
                        <dx:GridViewDataSpinEditColumn FieldName="ThuSTHours" VisibleIndex="1" Caption="ST" Width="42px" Name="ThuSTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                        </dx:GridViewDataSpinEditColumn>
                    </Columns>

                    <HeaderStyle ForeColor="#6699FF"></HeaderStyle>
                </dx:GridViewBandColumn>
                <dx:GridViewBandColumn Name="colFri" Visible="false" Caption="FRI" VisibleIndex="14" HeaderStyle-ForeColor="#6699ff">
                    <Columns>
                        <dx:GridViewDataSpinEditColumn FieldName="FirOTHours" VisibleIndex="2" Caption="OT" Width="42px" Name="FirOTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                            <CellStyle CssClass="OTHoursValue" ForeColor="Red">
                            </CellStyle>
                        </dx:GridViewDataSpinEditColumn>
                        <dx:GridViewDataSpinEditColumn FieldName="FriSTHours" VisibleIndex="1" Caption="ST" Width="42px" Name="FriSTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                        </dx:GridViewDataSpinEditColumn>
                    </Columns>

                    <HeaderStyle ForeColor="#6699FF"></HeaderStyle>
                </dx:GridViewBandColumn>
                <dx:GridViewBandColumn Name="colSat" Visible="false" Caption="SAT" VisibleIndex="15" HeaderStyle-ForeColor="#6699ff">
                    <Columns>
                        <dx:GridViewDataSpinEditColumn FieldName="SatSTHours" VisibleIndex="1" Caption="ST" Width="42px" Name="SatSTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                        </dx:GridViewDataSpinEditColumn>
                        <dx:GridViewDataSpinEditColumn FieldName="SatOTHours" VisibleIndex="2" Caption="OT" Width="42px" Name="SatOTHours">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                            <CellStyle CssClass="OTHoursValue" ForeColor="Red">
                            </CellStyle>
                        </dx:GridViewDataSpinEditColumn>
                    </Columns>

                    <HeaderStyle ForeColor="#6699FF"></HeaderStyle>
                </dx:GridViewBandColumn>
                <dx:GridViewBandColumn Name="colTotal" Caption="Total" VisibleIndex="16" HeaderStyle-ForeColor="#6699ff">
                    <Columns>
                        <dx:GridViewDataSpinEditColumn ReadOnly="true" VisibleIndex="1" Caption="ST" Width="42px" Name="SumST" FieldName="TotalST" UnboundType="Decimal" CellStyle-CssClass="totalNum">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False"></SpinButtons>
                            </PropertiesSpinEdit>
                            <CellStyle CssClass="totalNum"></CellStyle>
                        </dx:GridViewDataSpinEditColumn>
                        <dx:GridViewDataSpinEditColumn ReadOnly="true" VisibleIndex="2" Caption="OT" Width="42px" Name="SumOT" FieldName="TotalOT" UnboundType="Decimal">
                            <PropertiesSpinEdit AllowMouseWheel="False" DecimalPlaces="1" DisplayFormatString="g" NumberFormat="Custom">
                                <SpinButtons ShowIncrementButtons="False">
                                </SpinButtons>
                            </PropertiesSpinEdit>
                            <CellStyle CssClass="totalNumOT" ForeColor="Red">
                            </CellStyle>
                        </dx:GridViewDataSpinEditColumn>
                    </Columns>
                    <HeaderStyle ForeColor="#6699FF"></HeaderStyle>
                </dx:GridViewBandColumn>
                <%--      <dx:GridViewDataColumn Caption="" FieldName="TotalOT" Name="TotalOT" Width="0" VisibleIndex="20">
                </dx:GridViewDataColumn>
                <dx:GridViewDataColumn Caption="" FieldName="TotalST" Name="TotalST" Width="0" VisibleIndex="21">
                </dx:GridViewDataColumn>--%>
               <%-- <dx:GridViewDataTextColumn FieldName="Extension" VisibleIndex="18" Width="100px">
                </dx:GridViewDataTextColumn>--%>
                <%--<dx:GridViewDataTextColumn FieldName="Notes" VisibleIndex="19" Width="100px">
                </dx:GridViewDataTextColumn>--%>
                <dx:GridViewCommandColumn Name="colAction" ButtonType="Button" Caption="Action" ShowNewButtonInHeader="true" ShowDeleteButton="True" Width="130px" ShowEditButton="True" ShowUpdateButton="True" VisibleIndex="32">
                </dx:GridViewCommandColumn>
            </Columns>
            <Templates>
                <DetailRow>
                    <dx:ASPxGridView
                        ID="grvNoteDetails"
                        runat="server"
                        EnableTheming="True"
                        Theme="Office2010Silver"
                        Style="margin-right: 0px"
                        SettingsPager-PageSize="15"
                        OnRowInserting="grvNoteDetails_RowInserting" OnRowUpdating="grvNoteDetails_RowUpdating"
                        OnBeforePerformDataSelect="grvNoteDetails_BeforePerformDataSelect" OnCommandButtonInitialize="grvNoteDetails_CommandButtonInitialize"
                        KeyFieldName="Id" Width="1236px" AutoGenerateColumns="False" DataSourceID="dsTimesheetNotes">
                        <Columns>
                            <dx:GridViewDataTextColumn FieldName="Id" VisibleIndex="0" UnboundType="Integer" Visible="false" ReadOnly="true">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Notes 1" FieldName="Notes" Name="Active" VisibleIndex="2">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Notes 2" FieldName="Note1" Name="Active" VisibleIndex="3" Width="85px">
                                <PropertiesTextEdit MaxLength =" 8">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Notes 3" FieldName="Note2" Name="Active" VisibleIndex="4" Width="85px">
                                 <PropertiesTextEdit MaxLength =" 8">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Notes 4" FieldName="Note3" Name="Active" VisibleIndex="5" Width="85px">
                                 <PropertiesTextEdit MaxLength =" 8">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Notes 5" FieldName="Note4" Name="Active" VisibleIndex="6" Width="85px">
                                 <PropertiesTextEdit MaxLength =" 8">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Notes 6" FieldName="Note5" Name="Active" VisibleIndex="7" Width="85px">
                                 <PropertiesTextEdit MaxLength =" 8">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Notes 7" FieldName="Note6" Name="Active" VisibleIndex="8" Width="85px">
                                 <PropertiesTextEdit MaxLength =" 8">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Notes 8" FieldName="Note7" Name="Active" VisibleIndex="9" Width="85px">
                                 <PropertiesTextEdit MaxLength =" 8">
                                </PropertiesTextEdit>
                            </dx:GridViewDataTextColumn>
                            
                            <dx:GridViewCommandColumn Caption="Action" VisibleIndex="11" ShowNewButton="true" Width="128px" ShowDeleteButton="true" ShowEditButton="true">
                            </dx:GridViewCommandColumn>
                        </Columns>
                        <SettingsBehavior ColumnResizeMode="Disabled" ConfirmDelete="true" AllowFocusedRow="True" AllowSelectByRowClick="True" />
                        <SettingsPager PageSize="15"></SettingsPager>
                        <SettingsEditing Mode="Inline">
                        </SettingsEditing>
                        <Settings HorizontalScrollBarMode="Hidden" />
                        <SettingsCommandButton>
                            <UpdateButton ButtonType="Button">
                            </UpdateButton>
                            <CancelButton ButtonType="Button">
                            </CancelButton>
                            <DeleteButton ButtonType="Button">
                            </DeleteButton>
                            <EditButton ButtonType="Button">
                            </EditButton>
                        </SettingsCommandButton>
                        <Styles>
                            <Header HorizontalAlign="Center" Font-Size="Small">
                            </Header>
                            <AlternatingRow BackColor="#EDF5FF" Enabled="True">
                            </AlternatingRow>
                            <SelectedRow BackColor="#99CCFF">
                            </SelectedRow>
                            <FocusedRow BackColor="#99CCFF">
                            </FocusedRow>
                            <Row Font-Size="11pt" Font-Names="Calibri">
                            </Row>
                        </Styles>
                    </dx:ASPxGridView>


                    <asp:ObjectDataSource ID="dsTimesheetNotes" runat="server"
                        DataObjectTypeName="Timesheet.Domain.TimeSheetDetailsNote"
                        SelectMethod="GetListNotes"
                        UpdateMethod="Update"
                        DeleteMethod="Delete"
                        InsertMethod="Add"
                        TypeName="Timesheet.Service.ITimeSheetDetailsService"
                        OnObjectCreating="dsTmshDetails_ObjectCreating">
                        <SelectParameters>
                            <asp:SessionParameter DefaultValue="-1" SessionField="timeSheetDetailsId" Name="timeSheetDetailsId" Type="Int64" />
                        </SelectParameters>
                    </asp:ObjectDataSource>


                </DetailRow>
            </Templates>
            <SettingsCommandButton>
                <NewButton ButtonType="Button">
                </NewButton>
                <CancelButton ButtonType="Button">
                </CancelButton>
                <EditButton ButtonType="Button">
                </EditButton>
            </SettingsCommandButton>
            <Styles>
                <Table>
                    <Paddings PaddingLeft="22px" />
                </Table>
                <Header HorizontalAlign="Center" Font-Size="Small">
                </Header>
                <AlternatingRow BackColor="#EDF5FF" Enabled="True">
                </AlternatingRow>
                <SelectedRow BackColor="#99CCFF">
                </SelectedRow>
                <FocusedRow BackColor="#99CCFF">
                </FocusedRow>
                <Row Font-Size="11pt" Font-Names="Calibri">
                </Row>
                <Footer BackColor="#8DB1E2">
                </Footer>
            </Styles>
            <SettingsBehavior ColumnResizeMode="Disabled" ConfirmDelete="true" AllowFocusedRow="True" AllowSelectByRowClick="True" />
            <SettingsPager PageSize="10"></SettingsPager>
            <SettingsEditing Mode="Inline">
            </SettingsEditing>
            <SettingsDetail ShowDetailRow="true" AllowOnlyOneMasterRowExpanded="true" />
            <Settings HorizontalScrollBarMode="Hidden" ShowFooter="True" />
        </dx:ASPxGridView>
    </div>
    <%-- </div>--%>

    <asp:ObjectDataSource ID="dsTmshDetails" runat="server"
        DataObjectTypeName="Timesheet.Domain.TimeSheetDetails"
        DeleteMethod="Delete" InsertMethod="Add" SelectMethod="GetTimeSheetDetails"
        TypeName="Timesheet.Service.ITimeSheetDetailsService"
        UpdateMethod="Update"
        OnObjectCreating="dsTmshDetails_ObjectCreating">
        <SelectParameters>
            <asp:QueryStringParameter Name="tmshID" DefaultValue="-1" QueryStringField="tmshID" />
        </SelectParameters>
    </asp:ObjectDataSource>

    <asp:ObjectDataSource ID="dsEmployers" runat="server"
        DataObjectTypeName="Timesheet.Domain.User"
        SelectMethod="getAllOrderUsers"
        TypeName="Timesheet.Service.IUserService" OnObjectCreating="dsEmployers_ObjectCreating"></asp:ObjectDataSource>

    <asp:ObjectDataSource ID="dsGroups" runat="server"
        DataObjectTypeName="Timesheet.Domain.Groups"
        SelectMethod="GetGroups"
        TypeName="Timesheet.Service.IGroupsService" OnObjectCreating="dsGroups_ObjectCreating"></asp:ObjectDataSource>

    <asp:ObjectDataSource ID="dsClassCodes" runat="server"
        DataObjectTypeName="Timesheet.Domain.ClassCode"
        SelectMethod="GetClassCodes"
        TypeName="Timesheet.Service.IClassCodesService"
        OnObjectCreating="dsClassCodes_ObjectCreating"></asp:ObjectDataSource>

</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="head">
    <style>
        .dxgvHeader_Office2010Silver {
            padding: 0 0px;
        }
    </style>
</asp:Content>
